package sample.actions;

import sample.service.IAnotherService;
import sample.service.ISampleService;
import sample.service.TestServiceImpl;


public class T1Action {
    private ISampleService sampleService;
    private IAnotherService anotherService;
    private TestServiceImpl testService;

    public IAnotherService getAnotherService() {
        return anotherService;
    }

    public void setAnotherService(IAnotherService anotherService) {
        this.anotherService = anotherService;
    }

    public ISampleService getSampleService() {
        return sampleService;
    }

    public void setSampleService(ISampleService sampleService) {
        this.sampleService = sampleService;
    }

    public String execute() {
        //These have set** methods
    	getSampleService().sampleServiceMethod();
        getAnotherService().anotherServiceMethod();
        
        //This has inject** methods
        //getTestService().execute();

        return "success";
    }

    public TestServiceImpl getTestService() {
        return testService;
    }

    public void setTestService(TestServiceImpl testService) {
        this.testService = testService;
    }
}
